package com.info33.platform.doc.service;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.baomidou.mybatisplus.extension.service.IService;
import com.info33.platform.common.mvc.vo.Result;
import com.info33.platform.doc.dto.DocFileDownloadDTO;
import com.info33.platform.doc.entity.DocFileDetail;
import com.info33.platform.doc.vo.DocFileDetailVO;
import com.info33.platform.system.vo.SysUserVO;

/**
 * @author admin
 */
public interface DocFileDetailService extends IService<DocFileDetail> {

	/**
	 * 批量删除
	 * @param ids
	 * @return
	 */
	Result<?> removeFile(List<Long> ids);

	/**
	 * 下载文档
	 * @param response
	 * @param docFileDownloadDTO
	 * @param currentUser
	 */
	Result<?> download(HttpServletResponse response, DocFileDownloadDTO docFileDownloadDTO, SysUserVO currentUser);

	/**
	 * 获取历史版本列表
	 * @param docFileDetail
	 * @return
	 */
	List<DocFileDetailVO> listFile(DocFileDetail docFileDetail);


}